<?php #coding: utf-8 æ ø å ?>
<div class="indhold">
<?php





//UNDER

if($type == "entitet" and $stamdata['type']=='gruppe'){
	

	foreach($under as $r)
	{
		if($r['type']=="gruppe")
		{
			$under_navn = $r['under_navn'];
			$under_id = $r['under_id'];
			echo "<li>";
			?><a class='ink' href="<? echo base_url() ?>core/vis/se/<? echo $type; ?>/<? echo $under_id; ?>/under"><? echo $under_navn; ?></a> <?
		}
	}
	echo "</ul>";


}
elseif($type == "begivenhed") // BEGIVENHED BEGIVENHED BEGIVENHED
{


	if(!empty($under))
	{
		echo "<ul class='ink'>";
		foreach ($under as $row2) 
		{
			?>
			<li><a class="ink" href="<? echo base_url();?>core/vis/se/begivenhed/<? echo $row2['under_id'];?>/under"><? echo $row2['under_navn'];?></a>
			<?
		}	
		echo "</ul>";
	}


}
elseif($type == "sted") // STED STED STED STED
{


	echo "<ul class='ink'>";
	foreach ($under as $row2) 
	{
		?><li><a class="ink" href="<? echo base_url();?>core/vis/se/sted/<? echo $row2['under_id'];?>/under"><? echo $row2['under_navn'];?></a>
	
<?
	}	
	echo "</ul>";	

}
?>
</div>
